<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/4/26 0026
 * Time: 13:51
 */

namespace app\api\controller\v1;


use app\common\lib\exception\ApiException;
use think\Exception;
use think\Validate;
use app\api\model\Banner as BannerModel;

class Banner
{
    /**
     * @param $id
     */
    public function getBanner($id)
    {

        $result = BannerModel::with(['items', 'items.img'])->find($id);
        return show(100, '这是版本V1', $result);

    }
}